function checkeducation()
{
	
//\u68c0\u67e5\u7b2c1\u9879\u6559\u80b2\u80cc\u666f \u5fc5\u586b\u9879
	if(document.all.startYear1.value && document.all.startMonth1.value && document.all.endYear1.value && document.all.endMonth1.value && document.all.xueLi1.value && document.all.schoolName1.value)
	{
		if(!(document.all.startYear1.value>(((new Date()).getYear())-60) && document.all.startYear1.value<(((new Date()).getYear())+1) && document.all.endYear1.value>(((new Date()).getYear())-60) && document.all.endYear1.value<(((new Date()).getYear())+1) && document.all.startYear1.value<=document.all.endYear1.value))
		{
			alert("\u6559\u80b2\u80cc\u666f1\u7684\u8d77\u6b62\u5e74\u586b\u5199\u9519\u8bef\uff01");
			document.all.startYear1.focus();
			return false;
		}
		if(!checkschool(document.all.schoolName1.value))
		{
			document.all.schoolName1.focus();
			return false;
		}
	}
	else
	{
		alert("\u81f3\u5c11\u8981\u586b\u5199\u5b8c\u6574\u7b2c1\u9879\u6559\u80b2\u80cc\u666f\uff01");
		document.all.startYear1.focus();
		return false;
	}

//\u68c0\u67e5\u7b2c1\u9879\u6559\u80b2\u80cc\u666f \u4e13\u4e1a\u540d\u79f0 \u9009\u586b\u9879
	if(document.all.speciality1.value)
	{
		if(!checkspecility(document.all.speciality1.value))
		{
			document.all.speciality1.focus();
			return false;
		}
	}

//\u68c0\u67e5\u7b2c1\u9879\u6559\u80b2\u80cc\u666f \u6559\u80b2\u60c5\u51b5\u63cf\u8ff0 \u9009\u586b\u9879
	if(document.all.descriptionEducation1.value.length>200)
	{
		alert("\u6559\u80b2\u60c5\u51b5\u63cf\u8ff0\u5b57\u6570\u8d85\u8fc7200\uff01")
		document.all.descriptionEducation1.focus();
		return false;
	}

//\u68c0\u67e5\u7b2c2\u9879\u6559\u80b2\u80cc\u666f \u9009\u586b\u9879
	if(document.all.startYear2.value || document.all.startMonth2.value || document.all.endYear2.value || document.all.endMonth2.value || document.all.xueLi2.value || document.all.schoolName2.value || document.all.speciality2.value || document.all.descriptionEducation2.value)
	{
		if(document.all.startYear2.value && document.all.startMonth2.value && document.all.endYear2.value && document.all.endMonth2.value && document.all.xueLi2.value && document.all.schoolName2.value)
		{
			if(!(document.all.startYear2.value>1949 && document.all.startYear2.value<2049 && document.all.endYear2.value>1949 && document.all.endYear2.value<2049 && document.all.startYear2.value<=document.all.endYear2.value))
			{
				alert("\u6559\u80b2\u80cc\u666f2\u7684\u8d77\u6b62\u5e74\u586b\u5199\u9519\u8bef\uff01");
				document.all.startYear2.focus();
				return false;
			}
			if(!checkschool(document.all.schoolName2.value))
			{
				document.all.schoolName2.focus();
				return false;
			}
		}
		else
		{
			alert("\u7b2c2\u9879\u6559\u80b2\u80cc\u666f\u586b\u5199\u4e0d\u5b8c\u6574\uff01\n\u5b8c\u6574\u7684\u6559\u80b2\u80cc\u666f\u81f3\u5c11\u5305\u542b(\u8d77\u6b62\u5e74\u6708/\u5b66\u5386/\u5b66\u6821\u540d\u79f0)");
			document.all.startYear2.focus();
			return false;
		}
	}

//\u68c0\u67e5\u7b2c2\u9879\u6559\u80b2\u80cc\u666f \u4e13\u4e1a\u540d\u79f0 \u9009\u586b\u9879
	if(document.all.speciality2.value)
	{
		if(!checkspecility(document.all.speciality2.value))
		{
			document.all.speciality2.focus();
			return false;
		}
	}

//\u68c0\u67e5\u7b2c2\u9879\u6559\u80b2\u80cc\u666f \u6559\u80b2\u60c5\u51b5\u63cf\u8ff0 \u9009\u586b\u9879
	if(document.all.descriptionEducation2.value.length>200)
	{
		alert("\u6559\u80b2\u60c5\u51b5\u63cf\u8ff0\u5b57\u6570\u8d85\u8fc7200\uff01")
		document.all.descriptionEducation2.focus();
		return false;
	}

//\u68c0\u67e5\u7b2c3\u9879\u6559\u80b2\u80cc\u666f \u9009\u586b\u9879
	if(document.all.startYear3.value || document.all.startMonth3.value || document.all.endYear3.value || document.all.endMonth3.value || document.all.xueLi3.value || document.all.schoolName3.value || document.all.speciality3.value || document.all.descriptionEducation3.value)
	{
		if(document.all.startYear3.value && document.all.startMonth3.value && document.all.endYear3.value && document.all.endMonth3.value && document.all.xueLi3.value && document.all.schoolName3.value)
		{
			if(!(document.all.startYear3.value>1949 && document.all.startYear3.value<2049 && document.all.endYear3.value>1949 && document.all.endYear3.value<2049 && document.all.startYear3.value<=document.all.endYear3.value))
			{
				alert("\u6559\u80b2\u80cc\u666f3\u7684\u8d77\u6b62\u5e74\u586b\u5199\u9519\u8bef\uff01");
				document.all.startYear3.focus();
				return false;
			}
			if(!checkschool(document.all.schoolName3.value))
			{
				document.all.schoolName3.focus();
				return false;
			}
		}
		else
		{
			alert("\u7b2c3\u9879\u6559\u80b2\u80cc\u666f\u586b\u5199\u4e0d\u5b8c\u6574\uff01\n\u5b8c\u6574\u7684\u6559\u80b2\u80cc\u666f\u81f3\u5c11\u5305\u542b(\u8d77\u6b62\u5e74\u6708/\u5b66\u5386/\u5b66\u6821\u540d\u79f0)");
			document.all.startYear3.focus();
			return false;
		}
	}

//\u68c0\u67e5\u7b2c3\u9879\u6559\u80b2\u80cc\u666f \u4e13\u4e1a\u540d\u79f0 \u9009\u586b\u9879
	if(document.all.speciality3.value)
	{
		if(!checkspecility(document.all.speciality3.value))
		{
			document.all.speciality3.focus();
			return false;
		}
	}

//\u68c0\u67e5\u7b2c3\u9879\u6559\u80b2\u80cc\u666f \u6559\u80b2\u60c5\u51b5\u63cf\u8ff0 \u9009\u586b\u9879
	if(document.all.descriptionEducation3.value.length>200)
	{
		alert("\u6559\u80b2\u60c5\u51b5\u63cf\u8ff0\u5b57\u6570\u8d85\u8fc7200\uff01")
		document.all.descriptionEducation3.focus();
		return false;
	}

//\u68c0\u67e5\u7b2c1\u9879\u57f9\u8bad\u7ecf\u5386 \u9009\u586b\u9879
	if(document.all.tstartYear1.value || document.all.tstartMonth1.value || document.all.tendYear1.value || document.all.tendMonth1.value || document.all.ttrainOrganize1.value || document.all.ttrainCource1.value || document.all.tcertificate1.value)
	{
		if(document.all.tstartYear1.value && document.all.tstartMonth1.value && document.all.tendYear1.value && document.all.tendMonth1.value && document.all.ttrainOrganize1.value && document.all.ttrainCource1.value)
		{
			if(!(document.all.tstartYear1.value>1949 && document.all.tstartYear1.value<2049 && document.all.tendYear1.value>1949 && document.all.tendYear1.value<2049 && document.all.tstartYear1.value<=document.all.tendYear1.value))
			{
				alert("\u7b2c1\u9879\u57f9\u8bad\u7ecf\u5386\u7684\u8d77\u6b62\u5e74\u586b\u5199\u9519\u8bef\uff01");
				document.all.tstartYear1.focus();
				return false;
			}
			if(!checktschool(document.all.ttrainOrganize1.value))
			{
				document.all.ttrainOrganize1.focus();
				return false;
			}
			if(!checktspecility(document.all.ttrainCource1.value))
			{
				document.all.ttrainCource1.focus();
				return false;
			}
		}
		else
		{
			alert("\u7b2c1\u9879\u57f9\u8bad\u7ecf\u5386\u586b\u5199\u4e0d\u5b8c\u6574\uff01\n\u5b8c\u6574\u7684\u57f9\u8bad\u7ecf\u5386\u81f3\u5c11\u5305\u542b(\u8d77\u6b62\u5e74\u6708/\u57f9\u8bad\u673a\u6784/\u57f9\u8bad\u8bfe\u7a0b)");
			document.all.tstartYear1.focus();
			return false;
		}
	}

//\u68c0\u67e5\u7b2c1\u9879\u57f9\u8bad\u7ecf\u5386 \u83b7\u5f97\u8bc1\u4e66 \u9009\u586b\u9879
	if(document.all.tcertificate1.value)
	{
		if(!checktcitificate(document.all.tcertificate1.value))
		{
			document.all.tcertificate1.focus();
			return false;
		}
	}

//\u68c0\u67e5\u7b2c2\u9879\u57f9\u8bad\u7ecf\u5386 \u9009\u586b\u9879
	if(document.all.tstartYear2.value || document.all.tstartMonth2.value || document.all.tendYear2.value || document.all.tendMonth2.value || document.all.ttrainOrganize2.value || document.all.ttrainCource2.value || document.all.tcertificate2.value)
	{
		if(document.all.tstartYear2.value && document.all.tstartMonth2.value && document.all.tendYear2.value && document.all.tendMonth2.value && document.all.ttrainOrganize2.value && document.all.ttrainCource2.value)
		{
			if(!(document.all.tstartYear2.value>1949 && document.all.tstartYear2.value<2049 && document.all.tendYear2.value>1949 && document.all.tendYear2.value<2049 && document.all.tstartYear2.value<=document.all.tendYear2.value))
			{
				alert("\u7b2c2\u9879\u57f9\u8bad\u7ecf\u5386\u7684\u8d77\u6b62\u5e74\u586b\u5199\u9519\u8bef\uff01");
				document.all.tstartYear2.focus();
				return false;
			}
			if(!checktschool(document.all.ttrainOrganize2.value))
			{
				document.all.ttrainOrganize2.focus();
				return false;
			}
			if(!checktspecility(document.all.ttrainCource2.value))
			{
				document.all.ttrainCource2.focus();
				return false;
			}
		}
		else
		{
			alert("\u7b2c2\u9879\u57f9\u8bad\u7ecf\u5386\u586b\u5199\u4e0d\u5b8c\u6574\uff01\n\u5b8c\u6574\u7684\u57f9\u8bad\u7ecf\u5386\u81f3\u5c11\u5305\u542b(\u8d77\u6b62\u5e74\u6708/\u57f9\u8bad\u673a\u6784/\u57f9\u8bad\u8bfe\u7a0b)");
			document.all.tstartYear2.focus();
			return false;
		}
	}

//\u68c0\u67e5\u7b2c2\u9879\u57f9\u8bad\u7ecf\u5386 \u83b7\u5f97\u8bc1\u4e66 \u9009\u586b\u9879
	if(document.all.tcertificate2.value)
	{
		if(!checktcitificate(document.all.tcertificate2.value))
		{
			document.all.tcertificate2.focus();
			return false;
		}
	}

//\u68c0\u67e5\u7b2c3\u9879\u57f9\u8bad\u7ecf\u5386 \u9009\u586b\u9879
	if(document.all.tstartYear3.value || document.all.tstartMonth3.value || document.all.tendYear3.value || document.all.tendMonth3.value || document.all.ttrainOrganize3.value || document.all.ttrainCource3.value || document.all.tcertificate3.value)
	{
		if(document.all.tstartYear3.value && document.all.tstartMonth3.value && document.all.tendYear3.value && document.all.tendMonth3.value && document.all.ttrainOrganize3.value && document.all.ttrainCource3.value)
		{
			if(!(document.all.tstartYear3.value>1949 && document.all.tstartYear3.value<2049 && document.all.tendYear3.value>1949 && document.all.tendYear3.value<2049 && document.all.tstartYear3.value<=document.all.tendYear3.value))
			{
				alert("\u7b2c3\u9879\u57f9\u8bad\u7ecf\u5386\u7684\u8d77\u6b62\u5e74\u586b\u5199\u9519\u8bef\uff01");
				document.all.tstartYear3.focus();
				return false;
			}
			if(!checktschool(document.all.ttrainOrganize3.value))
			{
				document.all.ttrainOrganize3.focus();
				return false;
			}
			if(!checktspecility(document.all.ttrainCource3.value))
			{
				document.all.ttrainCource3.focus();
				return false;
			}
		}
		else
		{
			alert("\u7b2c3\u9879\u57f9\u8bad\u7ecf\u5386\u586b\u5199\u4e0d\u5b8c\u6574\uff01\n\u5b8c\u6574\u7684\u57f9\u8bad\u7ecf\u5386\u81f3\u5c11\u5305\u542b(\u8d77\u6b62\u5e74\u6708/\u57f9\u8bad\u673a\u6784/\u57f9\u8bad\u8bfe\u7a0b)");
			document.all.tstartYear3.focus();
			return false;
		}
	}

//\u68c0\u67e5\u7b2c3\u9879\u57f9\u8bad\u7ecf\u5386 \u83b7\u5f97\u8bc1\u4e66 \u9009\u586b\u9879
	if(document.all.tcertificate3.value)
	{
		if(!checktcitificate(document.all.tcertificate3.value))
		{
			document.all.tcertificate3.focus();
			return false;
		}
	}

//\u68c0\u67e5\u5176\u5b83\u5916\u8bed\u53ca\u6c34\u5e73 \u9009\u586b\u9879
	if(document.all.otherLanguage.value || document.all.otherLanguageLevel.value)
	{
		if(document.all.otherLanguage.value && !document.all.otherLanguageLevel.value)
		{
			alert("\u60a8\u6ca1\u6709\u9009\u62e9\u5176\u5b83\u5916\u8bed\u8bed\u79cd\u7684\u6c34\u5e73\uff01");
			document.all.otherLanguageLevel.focus();
			return false;
		}
		if(!document.all.otherLanguage.value && document.all.otherLanguageLevel.value)
		{
			alert("\u60a8\u9009\u62e9\u4e86\u5176\u5b83\u5916\u8bed\u7684\u6c34\u5e73\uff0c\u5374\u6ca1\u6709\u9009\u62e9\u5176\u5b83\u5916\u8bed\u7684\u8bed\u79cd\uff01");
			document.all.otherLanguage.focus();
			return false;
		}
	}

//\u68c0\u67e5\u6280\u80fd\u63cf\u8ff0 \u9009\u586b\u9879
	if(document.all.skillDescription.value.length>200)
	{
		alert("\u6280\u80fd\u63cf\u8ff0\u5b57\u6570\u8d85\u8fc7200\uff01")
		document.all.skillDescription.focus();
		return false;
	}
  document.all.method.value="add";
//\u68c0\u67e5\u7ed3\u675f
}
function checkschool(school){
	
	var regex=/^[\S].{1,20}$/gi;
	if(!school.match(regex)){
alert("\u4e0d\u80fd\u542b\u6709\u975e\u6cd5\u5b57\u7b26!");
  return false;
	}else{
  return true;
	}	
}

function checktschool(school){
	var regex=/^[\S].{1,20}$/gi;
	if(!school.match(regex)){
    	alert("\u4e0d\u80fd\u542b\u6709\u975e\u6cd5\u5b57\u7b26!");
  return false;
	}else{
  return true;
	}
	
}
function checkspecility(str){
	var regex=/^[\u4e00-\u9fa5\s]{1,20}$/gi;
  if(!str.match(regex)){
  	  	alert("\u4e0d\u80fd\u542b\u6709\u975e\u6cd5\u5b57\u7b26!");
  return false;
	}else{
  return true;
	}
}
function checktspecility(str){
	var regex=/^[\u4e00-\u9fa5\s]{1,20}$/gi;
  if(!str.match(regex)){
  	  	alert("\u4e0d\u80fd\u542b\u6709\u975e\u6cd5\u5b57\u7b26!");
  return false;
	}else{
  return true;
	}
}
function checkcitificate(str){
	var regex=/^[\u4e00-\u9fa5\s]{1,20}$/gi;
  if(!str.match(regex)){
  	  	alert("\u4e0d\u80fd\u542b\u6709\u975e\u6cd5\u5b57\u7b26!");
  return false;
	}else{
  return true;
	}
}
function checktcitificate(str){
	var regex=/^[\u4e00-\u9fa5\s]{1,20}$/gi;
  if(!str.match(regex)){
  	alert("\u4e0d\u80fd\u542b\u6709\u975e\u6cd5\u5b57\u7b26!");
  return false;
	}else{
  return true;
	}
}
